package design.p21_visitor;

/**
 * @ClassName: Java
 * @description:
 * @author: zxf
 * @create: 2021-06-20 11:24
 **/
public class MyVisitor implements Visitor{
    @Override
    public void visit(Subject subject) {
        System.out.println("visit the subject:"+subject.getSubject());
    }
}

